document.oncontextmenu=new Function("event.returnValue=false;");
document.onselectstart=new Function("event.returnValue=false;");
//获取url中的参数
function getUrlParam(name) {
    var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); //构造一个含有目标参数的正则表达式对象
    var r = window.location.search.substr(1).match(reg);  //匹配目标参数
    if (r != null) return unescape(r[2]); return null; //返回参数值
}
$(function(){
	var time = 60000;
	var timer = setTimeout(turn,time);
	$("body").click(function(){
		clearTimeout(timer);
		timer = setTimeout(turn,time);
	});

	function turn(){
		window.location.href="/";
	}
});
